package com.example.libo.huihui.utils;

import com.example.libo.huihui.been.GuoneiListEntity;
import com.example.libo.huihui.been.GuoneiTopEntity;
import com.example.libo.huihui.been.HaitaoEntity;
import com.example.libo.huihui.been.QingdanEntity;
import com.example.libo.huihui.been.SearchListEntity;
import com.example.libo.huihui.been.SearchResultOneEntity;
import com.example.libo.huihui.been.SearchResultTwoEntity;
import com.example.libo.huihui.been.ShaiWuEntity;
import com.example.libo.huihui.been.ZixunEntity;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by libo on 2017/1/9.
 */

public interface HttpService {

    //晒物
    @GET("app/shaidan/list?platform=android&system_version=5.1&app_version=3.9.3&device_id=867905022627881&appname=deals_app&vendor=market_360&model=PRO+5")
    Call<ShaiWuEntity> getShaiWu(@Query("page") int page);

    //资讯
    @GET("app/zixun/list?platform=android&system_version=5.1&app_version=3.9.3&device_id=867905022627881&appname=deals_app&vendor=market_360&model=PRO+5")
    Call<ZixunEntity> getZixun(@Query("page") int page);

    //清单
    @GET("deals/category.json?category=goods_list&with_user=1&with_merchant=1&since_time=0&max_time=0&platform=android&system_version=5.1&app_version=3.9.3&device_id=867905022627881&appname=deals_app&vendor=market_360&model=PRO+5")
    Call<QingdanEntity> getQingdan(@Query("page") int page);

    //国内banner
    @GET("app/inland/banners?platform=android&system_version=5.1&app_version=3.9.3&device_id=867905022627881&appname=deals_app&vendor=market_360&model=PRO+5")
    Call<GuoneiTopEntity> getGuoneiTop();

    //国内列表
    @GET("app/inland/top_pull?category=all&interval=609624&platform=android&system_version=5.1&app_version=3.9.3&device_id=867905022627881&appname=deals_app&vendor=market_360&model=PRO+5")
    Call<GuoneiListEntity> getGuoneilist();

    //海淘列表
    @GET("app/abroad/bottom_pull?category=all&lastshowtime=1483617200362&interval=4660&page=0&platform=android&system_version=5.1&app_version=3.9.3&device_id=867905022627881&appname=deals_app&vendor=market_360&model=PRO+5")
    Call<HaitaoEntity> getHaitao();

    //搜索列表
    @GET("/hot_suggest/list.json?platform=android&app_version=3.9.3&appname=deals_app")
    Call<SearchListEntity> getSearchList();

    //搜索结果
    @GET("/app/search/abroad?page=0&platform=android&app_version=3.9.3&appname=deals_app")
    Call<SearchResultOneEntity> getSearchResult(@Query("q") String key);

    @GET("/app/search/inland?page=0&platform=android&app_version=3.9.3&appname=deals_app")
    Call<SearchResultTwoEntity> getSearchTwo(@Query("q") String key);

}
